using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Dimok.Data.DataSources;

namespace Data.DataSources {
	public class LoanStatusHistoryDataSource : FunctionDataSource {
		public override string SelectViewName { get { return "Appl_MenuHistory(@LoanID)"; } }
		public override string InsertViewName { get { throw new NotImplementedException(); } }
		public int LoanID { set { SetSelectParameter("LoanID", value); } }
		public LoanStatusHistoryDataSource(int loanID): this() {
			LoanID = loanID;
		}
		public LoanStatusHistoryDataSource() {
			EmtyRowPolicy = EmptyRowPolicyType.None;
		}
		public override DataView SelectEx() {
			throw new Exception("Must use a Loan ID filter.");
		}
		public override DataView SelectEx(int LoanID) {
			return Select("", LoanID);
		}

	}
}